<ul class="navbar">
  <li @@if (context.index==='active' ) { class="active" }>
    <a href="index.html">首页</a>
  </li>
  <li @@if (context.about==='active' ) { class="active" }>
    <a href="about.html">关于</a>
  </li>
  <li @@if (context.contact==='active' ) { class="active" }>
    <a href="contact.html">联系我们</a>
  </li>
</ul>